﻿<%@ Page Language="C#" AutoEventWireup="true"  EnableEventValidation="false" CodeBehind="RunRecordEdit.aspx.cs" Inherits="Webcar.Car.RunRecordEdit" %>

<%@ Register Assembly="WebPager" Namespace="Zw.Control" TagPrefix="cc1" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无功运行记录编辑</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="TableEdit" >
        <div class="content" >
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <uc1:NaviBar ID="NaviBar1" runat="server" />
            <div class="tips" style="margin-top:2px;margin-bottom:2px;">
                <span>提示:带*号的项目必须录入</span>
            </div>
            <table id = "t" cellspacing="1" cellpadding="1"  border="0">
                <tr class="tableAlterItems">
                    <td class="tdleft" >
                        *所属单位：</td>
                    <td class="tdright" colspan="3">
                        <asp:DropDownList ID="ddlDept" Width="100%" runat="server">
                        </asp:DropDownList></td>
                </tr>
                
                <tr class="tableAlterItems">
                    <td class="tdleft" >
                        *车辆牌照号：</td>
                    <td class="tdright" style="width: 17%">
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                            <ContentTemplate>
                        <asp:TextBox ID="tbRecordNo" onblur="lostfocus()"  runat="server" Width="97%"></asp:TextBox>
                        </ContentTemplate>
                        </asp:UpdatePanel>
                        </td>
                        
                    <td class="tdleft" >
                        车型：</td>
                    <td class="tdright">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                            <ContentTemplate>
                        <asp:TextBox ID="tbClassName" runat="server" Width="97%" Enabled="False"></asp:TextBox>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr class="tableAlterItems">
                    <td class="tdleft" >
                        *驾驶员：</td>
                    <td class="tdright" style="width: 17%">
                        <asp:TextBox ID="tbDriverName" runat="server" Width="97%"></asp:TextBox>
                        </td>
                    <td class="tdleft" >
                        证明人：</td>
                    <td class="tdright">
                        <asp:TextBox ID="tbCertifiedMan" runat="server" Width="97%"></asp:TextBox>
                        </td>
                </tr>
                <tr class="tableAlterItems">
                    <td class="tdleft" >
                        上次运行时间：</td>
                    <td class="tdright" style="width: 17%">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                        <cc1:Calendar ID="dtLastDate" runat="server" Width="97%"></cc1:Calendar>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                    <td class="tdleft" >
                        上次运行地点：</td>
                    <td class="tdright">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                        <asp:TextBox ID="tbLastPlace" runat="server" Width="97%"></asp:TextBox>
                        <div style="display:none">
                        <asp:Button ID="Button1" runat="server" UseSubmitBehavior="false" CssClass="button" Text="查询" Width="41px" OnClick="Button1_Click" />
                        </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr class="tableAlterItems">
                    <td class="tdleft" >
                        *本次运行时间：</td>
                    <td class="tdright" style="width: 17%">
                        <cc1:Calendar ID="dtRunDate" runat="server" Width="97%"></cc1:Calendar></td>
                    <td class="tdleft" >
                        *本次运行地点：</td>
                    <td class="tdright">
                        <asp:TextBox ID="tbRunPlace" runat="server" Width="97%"></asp:TextBox>
                        </td>
                </tr>
                
                <tr class="tableAlterItems">
                    <td class="tdleft" >
                        底盘检查情况：</td>
                    <td class="tdright" colspan="3" >
                       <asp:TextBox ID="tbDp"  Width="98%" TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>
                       </td>
                </tr>
                <tr class="tableAlterItems">
                    <td class="tdleft"   >
                        上车检查情况：</td>
                    <td colspan="3" class="tdright">
                        <asp:TextBox ID="tbSc" TextMode="MultiLine" Rows="4" runat="server" Width="98%"></asp:TextBox></td>
                   
                </tr>
                <tr class="tableAlterItems">
                    <td class="tdleft"   >
                        液压检查情况：</td>
                    <td colspan="3" class="tdright">
                        <asp:TextBox ID="tbYY" TextMode="MultiLine" Rows="4" Width="98%" runat="server"></asp:TextBox></td>
                    
                </tr>
                    <tr class="tableAlterItems">
                    <td class="tdleft"   >
                        电气检查情况：</td>
                    <td colspan="3" class="tdright">
                    <asp:TextBox ID="tbDq" Width="98%" TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr class="tableAlterItems">
                    <td class="tdleft"   >
                        备注：</td>
                    <td colspan="3" class="tdright">
                    <asp:TextBox ID="tbQt" Width="98%" TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>
                        </td>
                </tr>
               
            </table>
            <br />
            <div class="footer">
                <div class="e">
                    <asp:Label ID="lblInfo" runat="server" ForeColor="Blue" Text=""></asp:Label>
                    <hr class="line_blue" />
                    <asp:Label ID="lblError" runat="server"></asp:Label>
                </div>
                &nbsp;
                <asp:Button ID="btnSave" runat="server" UseSubmitBehavior="false" Text="保存数据" SkinID="default_button" Width="60px" OnClick="btnSave_Click" />
                <input id="Button2" type="button" value="返回" style="width:60px" class="button" onclick="javascript:history.back(1);" />
                </div>
        </div>
    </div>
    </form>
</body>
</html>
<script language="javascript">
function lostfocus()
{
    //触发button1的事件，得到用户名
    <%= Page.GetPostBackClientEvent(Button1,"onclick")%>;
}

</script>